﻿using AiXiu.IDAL;
using AiXiu.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiXiu.DAL
{
    public class MobileService : IMobleService
    {
        /// <summary>
        /// 通过手机号查找登录信息
        /// </summary>
        /// <param name="mobile">手机号</param>
        /// <returns></returns>
        public TBLogins FindByUserMobile(string mobile)
        {
            AiXiuDbConten dbConten = new AiXiuDbConten();
            return dbConten.TBLogins.SingleOrDefault(e => e.MobileNumber == mobile);
        }
    }
}
